import 'package:json_annotation/json_annotation.dart';

part 'contactInfo.g.dart';

@JsonSerializable()
class ContactInfo {
  ContactInfo(
    this.fullName,
    this.phoneNumber,
    this.relation,
    this.validationInfo,
  );

  String fullName;
  String phoneNumber;
  String relation;
  String validationInfo;

  factory ContactInfo.fromJson(Map<String, dynamic> json) => _$ContactInfoFromJson(json);
  Map<String, dynamic> toJson() => _$ContactInfoToJson(this);
  // 命名构造函数
  ContactInfo.empty();
}
